﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace paipai
{
    public partial class help : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            #region   session check & init
            if (!IsPostBack)
            {
                if (Session["UserID"] != null)
                {
                    ViewState.Add("UserID", Session["UserID"]);
                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
            #endregion
            //var cHelp = Bll.CHelpManage.CreateHelp();

            //cHelp.ID = Guid.NewGuid().ToString();
            //cHelp.Title = "new a";
            //cHelp.Content = "something new a";

            //Bll.CHelpManage.Save(cHelp);


            GridViewHelp.DataSource = Bll.CHelpManage.LoadAllHelp();
            GridViewHelp.DataBind();
            
        }
        protected void GridViewHelpRowCommand(object sender, GridViewRowEventArgs e)
        {
            //e.GetType()
        }
    }
}
